<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
	<title>用户管理</title>
	<script>
		$(document).ready(function() {
			//聚焦第一个输入框
			$("#user-tab").addClass("active");
		});
	</script>
</head>
<jsp:include page="/WEB-INF/views/common.jsp"/>
<body>
	<c:if test="${not empty message}">
		<div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
	</c:if>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
        <tr>
            <th>昵称</th>
            <th>邮箱</th>
            <th>手机号</th>
            <th>性别</th>
            <th>当前版本</th>
            <th>手机平台</th>
            <th>手机imei</th>
            <th>登陆信息</th>
        </tr>
        </thead>
		<tbody>
		<c:forEach items="${list}" var="entity">
			<tr>
				<td>${entity.nickName}(${entity.id})</td>
				<td>${entity.email}</td>
                <td>${entity.mdn}</td>
                <td>${entity.sex}</td>
                <td>${entity.version}</td>
                <td>${entity.platform}</td>
                <td>${entity.imei}</td>
                <td>${entity.lastLoginTime}(${entity.loginCount})</td>
                <td>
				</td>
			</tr>
		</c:forEach>
		</tbody>
        <tfoot>
        <tr colspan="6" align="right">
            <td >
                <a href="${ctx}/web/clientUser/userlist?pageNo=1" title="首页">首页</a>
                <a href="${ctx}/web/clientUser/userlist?pageNo=${pageVO.pageNo-1}" title="上一页">上一页</a>
                <a href="${ctx}/web/clientUser/userlist?pageNo=${pageVO.pageNo+1}" title="下一页">下一页</a>
                <a href="${ctx}/web/clientUser/userlist?pageNo=${pageVO.totalPage}" title="尾页">尾页</a>
                ${pageVO.pageNo}/${pageVO.totalPage} 总数:${pageVO.totalCount} 总页数: ${pageVO.totalPage}
            </td>
        </tr>
        </tfoot>
    </table>
</body>
</html>
